import Demo.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2023-01-21
 * Time:17:26
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("spring-config.xml");
        Demo.ControllerTest test=context.getBean("controllerTest",Demo.ControllerTest.class);
//        User user=(User)context.getBean("user");
        System.out.println(test.test().toString());
//        System.out.println(user.toString());
//        System.out.println(user.toString());
    }
}
